package com.shuiyu.cloud.service;

import com.shuiyu.cloud.entities.CommonResult;
import com.shuiyu.cloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author rjw
 * <p>Description:   </p>
 * @ClassName PaymentFeignService
 * @time 2021/7/16 14:55
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {


    @GetMapping("/query/{id}")
    public CommonResult query(@PathVariable("id")Long id);

    @GetMapping("/payment/feignTimeout")
    public  String paymentFeignTimeout();
}
